" vim:ft=vim

Execute(test-cwd):
  Log '# --cwd=/'
    let cwd = getcwd()
    FloatermNew --cwd=/
    " cwd should be restored after opening floaterm
    AssertEqual cwd, getcwd()

  Log '# --cwd=~'
    FloatermNew --cwd=<root>

  Log '# --cwd=..'
    FloatermNew --cwd=<root>

  Log '# --cwd=<root>'
    FloatermNew --cwd=<root>

  FloatermKill!
  stopinsert
